@g-3: #333;
@g-6: #666;
@g-9: #999;
@g-f0: #f0f0f0;
@g-nav: #fafafa;
@g-nav-child: #f0f0f0;
@g-main: #f6f6f6;
@g-header: #f5f5f5;
@blue: #2cb3ff;
@blue-l: #b5eeff;
@color-theme: #2ea2fb;
@white: #fff;
@header-top: #313638;
@header-left: #525b5e;
@header-color: #b3c2c9;
@red: #ff4455;
@green: #9bfd84;
@min-width: 1200px;
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-center-h {
    display: flex;
    align-items: center;
}

header {
    background-color: #262a2b; // min-width: @min-width;
    height: 0.6rem;
    display: flex;
    .header-img {
        width: 2rem;
        height: 0.6rem;
        display: flex;
        justify-content: center;
        align-items: center;
        img {
            width: 100%;
            height: inherit;
            padding: .1rem .15rem;
        }
    }
    .wrap {
        background: @header-top;
        flex: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 0.6rem;
    }
    .header-title {
        color: #ffffff;
        font-size: .16rem;
        padding-left: .15rem;
    }
    .header-bar {
        height: 0.56rem;
        display: flex;
        align-items: center;
        padding-right: .05rem;
        >li {
            padding: 0 .12rem;
            &.header-active {
                margin-bottom: -2px;
                padding: .1rem;
                border-bottom: 3px solid @blue;
                a {
                    color: @blue !important;
                }
            }
            a {
                font-size: .14rem;
                color: @white;
                &:hover {
                    color: #7deff9;
                }
            }
        }
    }
    .header-search {
        display: flex;
        align-items: center;
        input {
            padding: 0 .8rem 0 .1rem;
            height: 0.32rem;
            border-radius: 1px;
            border: 1px solid #525b5e;
            background: #525b5e;
            outline: none;
            width: 2.6rem;
            color: @header-color;
            &:focus {
                border: 1px solid #525b5e;
            }
        }
        .icons {
            width: 1rem;
            margin-left: -0.8rem;
            .left {
                margin-right: .8rem;
            }
        }
    }
    .header-dropdown {
        background: @header-top;
        padding: 0;
        li {
            a {
                color: @header-color;
                cursor: pointer;
                &:hover {
                    background: @header-top;
                }
            }
        }
    }
    .header-logout {
        margin-top: 0;
        border-radius: 1px;
        text-align: right;
        li a {
            padding: .02rem .1rem;
        }
    }
}

.content-img {
    width: 100%;
    height: calc(~'100vh - .6rem');
    background: url('./fkgj2.jpg') no-repeat;
    background-size: cover;
    overflow: auto;
    article {
        padding: 1.5rem 2rem 2rem;
        h5 {
            font-size: .4rem;
            color: @white;
        }
        p {
            padding: .3rem 0 .6rem;
            color: @white;
            font-size: .15rem;
            width: 60%;
            span {
                font-size: .18rem;
                font-weight: 500;
            }
        }
    }
    a {
        display: inline-block;
        padding: .15rem 1rem;
        border-radius: .2rem;
        border: 1px solid @white;
        color: @white;
        font-size: .16rem;
        &:hover {
            background: @white;
            color: @blue;
        }
    }
}

.main {
    .flex;
    .nav {
        flex: 0 0 2rem;
        overflow: hidden;
    }
    .nav-tree {
        width: 2.4rem;
        background: @g-nav;
        height: calc(~"100vh - .6rem");
        overflow-y: scroll;
        overflow-x: hidden;
        li {
            >a {
                // border-left: 3px solid @g-nav;
                .flex-center-h;
                justify-content: space-between;
                width: 100%;
                color: @g-6;
                padding: .1rem .5rem .1rem .15rem;
                .icon-menu {
                    font-size: .15rem;
                    width: .18rem;
                    text-align: center;
                }
                .icon-place {
                    color: @g-6;
                    font-size: .1rem;
                }
                &:hover {
                    background-color: #dedede; // border-color: #dedede !important;
                }
            }
            &.active {
                .icon-place {
                    transform: rotate(90deg);
                }
                >ul {
                    background: @g-nav-child;
                    display: block;
                }
            }
            &.navActive {
                >a {
                    // border-left: 3px solid @color-theme !important;
                    background: linear-gradient(to right, #2a98d4, #33b7ff);
                    color: @white;
                }
            }
        }
        ul {
            display: none;
            list-style: none;
        }
        .child-1 {
            >li>a {
                padding-left: .3rem;
            }
        }
    }
    .content {
        flex: auto;
        background: #dedede;
        width: 100%;
        height: calc(~"100vh - .6rem");
        overflow: auto;
    }
    .content-nav {
        background: @g-nav-child;
        padding: .1rem .15rem;
        .hr {
            padding: 0 .12rem 0 .1rem;
        }
    }
    .content-section {
        padding: .15rem;
    }
}

.body {
    background: @white;
    .body-form {
        padding: .1rem .2rem 0;
        .flex-center-h;
        h5 {
            font-size: .14rem;
            font-weight: bold;
            color: @g-3;
        }
        input {
            outline: none;
            padding: 0 .1rem;
            height: .28rem;
            width: 20%;
            min-width: 2rem;
            border-radius: 2px;
            border: 1px solid @g-nav;
        }
        a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: @color-theme;
            color: @white;
            height: .28rem;
            width: .5rem;
            border-radius: 2px;
            margin-left: .05rem;
            transition: background 0.2s;
            &:hover {
                background: @color-theme + 20;
            }
        }
    }
    .body-filters {
        padding: 0 .2rem .1rem;
        >ul {
            display: flex;
        }
        .label {
            flex: 0 0 .8rem;
            padding-top: 0.1rem;
        }
        .filter {
            ul {
                .flex;
                flex-wrap: wrap;
            }
            li {
                padding: .1rem .05rem;
            }
            a {
                padding: .03rem .2rem;
                background: @g-nav;
                color: @g-6;
                &:hover {
                    color: @g-3;
                }
            }
            .active {
                a {
                    background: @blue;
                    color: @white;
                }
            }
        }
    }
    .body-btn {
        padding: 0 .2rem .1rem;
        a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: @color-theme;
            color: @white;
            height: .26rem;
            width: .8rem;
            border-radius: 2px;
            transition: background 0.2s;
            &:hover {
                background: @color-theme + 20;
            }
        }
    }
    .body-blocks {
        padding: .1rem .1rem;
        display: flex;
        flex-wrap: wrap;
        .flex-content {
            flex: 1;
            height: 1.2rem;
            min-width: 2rem;
            background-color: @g-f0;
            display: flex;
            justify-content: space-between;
            margin: 0 .1rem .1rem;
            padding: .1rem;
            .content-1 {
                color: @g-6;
                font-size: .16rem;
            }
            .content-2 {
                align-self: flex-end;
                color: @g-3;
                font-weight: bold;
            }
        }
    }
    .body-report {
        .flex-center-h;
        justify-content: space-between;
        width: 100%;
        padding: 0 .2rem .1rem;
        >div {
            width: 100%;
            padding: .1rem .2rem;
            border: 1px solid @g-nav;
        }
        >div.text-space-between {
            flex: 0 0 100%;
            width: 100%;
            padding: .1rem .2rem;
            border: 1px solid @g-nav;
        }
        .chart {
            width: 100%;
            height: 3rem;
        }
        .msg {
            width: 100%;
            >div {
                .flex;
                align-items: flex-start;
                padding: .1rem 0;
                label {
                    flex: 0 0 1.3rem;
                    font-weight: normal;
                }
                textarea {
                    width: 100%;
                    resize: none;
                    font-size: .13rem;
                }
                input {
                    max-width: 2.5rem;
                }
                p {
                    font-size: .13rem;
                    color: @g-3;
                }
            }
            .center {
                align-items: center;
            }
        }
    }
    .content-condition {
        .flex-center-h;
        justify-content: space-between;
        flex: auto;
        width: 100%;
        padding: .1rem .2rem;
        .btn-groups {
            padding: .03rem .1rem;
        }
    }
    .comment {
        padding: .1rem .2rem;
        .text {
            padding: .05rem .2rem;
            border: 1px solid #f5f5f5;
            background: #fdf9ed;
        }
    }
    .add {
        padding: .02rem .2rem;
        margin: 0 0 .1rem .2rem;
        border-radius: 2px;
    }
    .body-table {
        >.ivu-table-wrapper {
            position: static;
            border: 0;
        }
        padding: 0 .2rem .1rem;
        table {
            min-width: 100%;
            tr {
                th {
                    background: @g-header !important;
                    height: .35rem;
                    border: 0;
                    span {
                        white-space: nowrap;
                        color: @g-6;
                        font-weight: normal;
                    }
                }
            }
        }
    }
    .body-itable {
        caption {
            font-size: .16rem;
            padding-bottom: .1rem;
        }
        border-spacing: 0;
        min-width: 100%;
        th,
        td {
            text-align: center;
            border-color: #dddee1;
        }
    }
    .body-child-rule {
        padding-left: .5rem;
        .title {
            margin: .15rem .2rem 0;
            font-size: .15rem;
            color: @g-6;
        }
    }
    hr {
        margin: .1rem 0;
        border: 0;
        border-bottom: 1px solid @g-nav;
    }
}

.ivu-table::before {
    background-color: @white;
}

.ivu-table::after {
    background-color: @white;
}

.flex-center-w {
    display: flex;
    justify-content: center;
}

.text-space-between {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.color-blue {
    margin: .1rem .2rem;
    color: @blue;
}

.page-title {
    margin: .15rem .2rem 0;
    font-weight: bold;
    font-size: .15rem;
    color: #333;
}

.h-title {
    font-size: .14rem;
    margin-bottom: .1rem;
    padding-left: calc(~".2rem - 1px");
    color: @g-6;
    border-left: 1px solid @color-theme;
}

.error_msg {
    padding: .1rem;
    color: @red;
}

.modals {
    .ivu-modal-content {
        border-radius: 2px;
    }
    .ivu-modal-footer {
        display: none;
    }
    &.footer .ivu-modal-footer {
        display: block;
    }
    .modal-table {
        >.ivu-table-wrapper {
            position: static;
            border: 0;
        }
        table {
            tr {
                th {
                    background: @g-header !important;
                    height: .35rem;
                    border: 0;
                    span {
                        white-space: nowrap;
                        color: @g-6;
                        font-weight: normal;
                    }
                }
            }
        }
    }
    .body-table {
        padding: 0 0 .1rem;
    }
}

.double-block {
    height: 1.2rem;
    width: 100%;
    background-color: @g-f0;
    display: flex;
    justify-content: space-between;
    margin-bottom: .1rem;
    padding: .1rem;
}

.info-block {
    height: 1.2rem;
    width: 100%;
    background-color: @g-f0;
    display: flex;
    justify-content: space-between;
    margin-bottom: .1rem;
    padding: .1rem;
    .info-block {
        margin-top: -.1rem;
        flex-direction: column;
        justify-content: space-between;
        .content-1 {
            align-self: center;
        }
        .content-2 {
            align-self: center;
        }
    }
    .content-1 {
        color: @g-6;
        font-size: .16rem;
    }
    .content-2 {
        align-self: flex-end;
        color: @g-3;
        font-weight: bold;
    }
}

.nav-flow {
    .flow {
        .flex-center;
        .main {
            flex: 0 0 1rem;
            padding-left: .15rem;
        }
        >section {
            flex: auto;
        }
    }
}

.nav-card {
    padding: .1rem;
    h5 {
        padding-bottom: .1rem;
        font-weight: 300;
    }
    p {
        padding: .1rem;
        background: #e3ffdc;
        margin-right: .2rem;
        &.error {
            color: @red;
        }
    }
    &::after {
        content: "";
        float: right;
        margin-top: -.4rem;
        width: 0;
        height: 0;
        border-top: .2rem solid transparent;
        border-bottom: .2rem solid transparent;
        border-left: .2rem solid #e3ffdc;
    }
}

.search-info {
    .flex;
    flex-wrap: wrap;
    >.ivu-form-item {
        flex: 0 0 50%;
        min-width: 3rem;
    }
}

.application {
    padding: .1rem .2rem;
    h3 {
        text-align: center;
        color: @white;
        font-size: .16rem;
        padding: .05rem 0;
        background: @color-theme;
        border-radius: 4px;
    }
    .title {
        font-size: .14rem;
        color: @g-3;
        padding-top: .1rem;
        padding-bottom: .1rem;
        margin-bottom: .1rem;
        border-bottom: 1px solid @g-header;
    }
    .form {
        .form-control {
            .flex-center-h;
            padding-bottom: .1rem;
            >label {
                flex: 0 0 1rem;
            }
        }
    }
    .form-group {
        .flex-center-h;
        flex-wrap: wrap;
        .control {
            flex: 0 0 100%;
        }
    }
    .caption {
        .flex-center-h;
        flex-wrap: wrap;
        .ivu-select {
            width: 3rem;
        }
    }
    .upload-img {
        .flex;
        flex-wrap: wrap;
        .img-bed {
            padding: 0 .1rem .1rem;
        }
        .img {
            width: 100%;
            padding: .05rem 0;
        }
    }
    .form-show {
        >div {
            padding: .1rem 0;
            .flex;
            >label {
                width: 1rem;
            }
        }
        .img-group {
            .flex-center-h;
            flex-wrap: wrap;
        }
        .imgs {
            padding: .1rem 0;
            .flex-center-h;
            flex-wrap: wrap;
            flex: 0 0 50%;
            span {
                flex: 0 0 1.5rem;
            }
            img {
                height: 1.2rem;
            }
        }
    }
}

.order-ul {
    ul {
        width: 5rem;
        padding: .5rem 1rem;
    }
    li {
        .flex;
        background: @blue;
        color: #fff;
        border-radius: 3px;
        border-bottom-left-radius: 0;
        margin-bottom: .15rem;
        .title {
            height: .5rem;
            line-height: .3rem;
            text-align: center;
            .flex;
            flex-direction: column;
            &::before {
                content: '';
                float: left;
                width: 0;
                height: 0;
                border-left: .45rem solid transparent;
                border-right: .45rem solid transparent;
                border-top: .2rem solid #fff;
            }
            &::after {
                content: '';
                float: left;
                z-index: 1;
                width: 0;
                height: 0;
                border-left: .45rem solid transparent;
                border-right: .45rem solid transparent;
                border-top: .2rem solid @blue;
            }
        }
        .txt {
            padding: 0 .3rem;
            .flex;
            justify-content: center;
            flex-direction: column;
        }
    }
}

.cctable-title {
    text-align: center;
    font-size: 16px;
    margin-bottom: .1rem;
    font-weight: 400;
}

.report {
    padding: 0 .15rem .1rem;
    .title {
        font-size: .24rem;
        text-align: center;
        color: @g-6;
        padding: .2rem;
    }
    .main-block {
        padding: 0 .15rem;
        .info {
            height: 1.1rem;
            .flex;
            flex-direction: column;
            justify-content: space-between;
            padding-top: .1rem;
            p {
                .flex-center-h;
                label {
                    width: .6rem;
                    color: @g-6;
                }
            }
        }
        .result {
            padding-top: .1rem;
            padding-right: .05rem;
            p {
                height: 1rem;
                background: @g-nav;
                color: @g-6;
                padding: .1rem;
                .flex;
                flex-direction: column;
                justify-content: space-between;
                span {
                    font-size: .22rem;
                    text-align: right;
                }
            }
        }
        clear: both;
    }
    .nav-1,
    .nav-2 {
        clear: both;
        padding: .15rem 0;
        .nav-title {
            color: @white;
            background: @blue;
            font-size: .16rem;
            padding: .05rem .15rem;
            .flex-center-h;
            justify-content: space-between;
            .msg {
                font-size: .13rem;
            }
        }
        .nav-info {
            padding: .15rem;
            label {
                width: 1rem;
                display: inline-block;
                color: @g-6;
            }
        }
    }
    .nav-2 {
        padding: .05rem 0;
        .nav-title {
            color: @g-6;
            background: @g-nav;
            font-size: .14rem;
        }
    }
    .nav-comment {
        background: @g-nav;
        padding: .1rem .15rem;
        h5 {
            font-size: .14rem;
            color: @g-6;
        }
        p {
            text-indent: .24rem;
        }
        ol {
            padding: .05rem .24rem;
            li {
                h5 {
                    font-size: .13rem;
                }
            }
        }
    }
    .red {
        color: @red;
    }
    .green {
        color: @green;
    }
    .white {
        color: @blue-l;
    }
}

.ivu-page {
    padding-top: .1rem;
}

.err {
    color: @red;
}

.text-space-between-inline {
    display: flex;
    justify-content: space-between;
    >div {
        flex: 1;
    }
}

.approve-wrap {
    border-bottom: 1px solid @g-nav;
    padding: 0.2rem;
    >div {
        flex: 1;
        >div,
        >p,
        >label {
            padding-bottom: 0.1rem;
            display: block;
        }
        &:first-child {
            border-right: 1px solid @g-nav;
            .inline {
                display: flex;
                flex-wrap: wrap;
                align-content: flex-end;
                >span {
                    padding-top: 0.05rem;
                }
                *:not(:first-child) {
                    padding-left: 0.12rem;
                }
            }
        }
    }
}

.body-approve {
    .text-space-between {
        flex: 0 0 100%;
        width: 100%;
        padding: .1rem .2rem;
        border: 1px solid @g-nav;
    }
    &>div:not(:first-child) {
        padding-top: .2rem;
    }
}

.rule-select-block {
    flex: 1;
    >div {
        padding-bottom: 0.1rem;
        .flex-center-h;
        >span {
            flex: 0 0 0.8rem;
        }
    }
}

#done {
    .body:not(:first-child) {
        margin-top: 0.1rem;
    }
}

.body-blocks-rule {
    padding: .1rem .1rem;
    display: flex;
    flex-wrap: wrap;
    .flex-content {
        flex: 1;
        height: 1.2rem;
        min-width: 2rem;
        background-color: @g-f0;
        display: flex;
        margin: 0 .1rem .1rem;
        padding: .1rem;
        flex-direction: row;
        >div {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            >span:last-child {
                font-size: .16rem;
            }
        }
        .content-1 {
            color: @g-6;
            font-size: .16rem;
        }
        .content-2 {
            align-self: flex-end;
            color: @g-3;
            font-weight: bold;
        }
    }
}

.rule-modal-chart {
    .flex-center;
    .chart {
        flex: 0 0 70%;
    }
    .form {
        flex: 1;
        max-width: 3rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        >div {
            .flex-center;
            padding-bottom: 0.1rem;
            >div {
                flex: auto;
                &:nth-child(1) {
                    text-align: right;
                    padding-right: .1rem;
                    flex: 0 0 1rem;
                }
            }
        }
    }
}

.body-block {
    padding: 0 .2rem .1rem;
}

.score-modal-block {
    display: flex;
    justify-content: center;
    >div {
        width: 70%;
    }
}

.pull-right {
    display: flex;
    justify-content: flex-end;
}

.score-table {
    width: 100%;
    border: 0;
    .title,
    .one,
    .two,
    .three,
    .four {
        display: inline-block;
        padding: .02rem .2rem;
        margin: 0;
        color: @white;
        border-radius: 2px;
    }
    .title {
        background: #d6c3c3;
        margin-bottom: .2rem;
        padding: .02rem .5rem;
        border-radius: 2px;
    }
    .one,
    .two,
    .three {
        background: @blue;
    }
    .four {
        background: #f90;
    }
    .line {
        border-top: 1px solid #dedede;
    }
    td {
        text-align: center;
    }
    p {
        color: #dedede;
    }
}

.report-chart {
    display: flex;
    >div {
        flex: 1;
        padding-left: 5%;
    }
}

.center {
    display: flex;
    justify-content: center;
}

.warning-block {
    padding: 0.1rem;
    background-color: #ffffda;
    border-top: 1px solid #FFFF99;
}

.rule-describe {
    display: flex;
    justify-content: space-around;
    >div {
        flex: 0 0 40%;
    }
}

.download-demo {
    padding-bottom: .15rem;
    a {
        font-size: 13px;
        &:visited, &:active {
            color: #2d8cf0;
        }
        &:hover {
            color: #b5bdc8;
        }
    }
}